package pmr.core.finder;

import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.eclipse.jdt.core.IMethod;

public class UnusedMethodsRepository {

	private final Set<IMethod> unusedMethods = new HashSet<IMethod>();

	public UnusedMethodsRepository(IMethod[] methods) {
		List<IMethod> arrayList = Arrays.asList(methods);
		unusedMethods.addAll(arrayList);
	}

	public Set<IMethod> getUnusedMethods() {
		return unusedMethods;
	}

	public void remove(IMethod searchedMethod) {
		unusedMethods.remove(searchedMethod);

	}

}
